package com.FH.privilege.menu;

import com.FH.util.ResultDTO;

import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created by jinweizhe on 16/6/24.
 * 用户菜单资源类
 */
@Path("/menu")
@Produces(MediaType.APPLICATION_JSON)
@RequestScoped
public class SysMenuResource {

    @EJB
    private SysMenuDAO sysMenuDAO;

    @GET
    @Path("/{member_id}")
    public ResultDTO getMenuListByUser(@PathParam("member_id") String member_id){
        return sysMenuDAO.getMenuListByUser(member_id);
    }

}
